import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useMessageStore = defineStore('message', () => {
  const unreadMessageCount = ref(0)

  const unreadFriendApply = ref(false)

  const setunreadMessageCount = (count) => {
    unreadMessageCount.value = count
  }

  const setUnreadFriendApply = (isApply) => {
    unreadFriendApply.value = isApply
  }
  return { unreadMessageCount, setunreadMessageCount,unreadFriendApply,setUnreadFriendApply }
})
